package com.rundatop.dao.mapper;

import java.io.Serializable;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.rundatop.core.util.BbjobMapper;
import com.rundatop.dao.model.SysOrgan;

public interface OrganMapper extends BbjobMapper<SysOrgan> {

    List<SysOrgan> getDesendantList(@Param("parentId") Serializable parentId, @Param("type") String type);

    SysOrgan getOrganByRole(@Param("roleId")int roleId, @Param("id")int id);

//	@Select("select mobile1 mobile1, mobile2 mobile2, mobile3 mobile3 from sys_organ o where id in (#{organIdString})")
//	List<Organ> selectOrganMobiles(@Param("organIdString") String organIdString);
	
	@Select("select mobile1 mobile1, mobile2 mobile2, mobile3 mobile3 from sys_organ o where id in (#{organIdString})")
	SysOrgan selectOrganMobiles(@Param("organIdString") String organIdString);
}